import request from '@/utils/request'

// 查询入库检管理列表
// export function listInboundInspection(query) {
//   return request({
//     url: '/qualityManagement/inboundInspection/list',
//     method: 'get',
//     params: query
//   })
// }
export function listInboundInspection(query) {
  // 添加默认参数 zhijian 为 '1, 3'
  return request({
    url: '/OutboundManagement/deliveryOperation/findByZhijianList',
    method: 'get',
    params: query
  });
}

// 查询入库检管理详细
export function getInboundInspection(inspectionId) {
  return request({
    url: '/qualityManagement/inboundInspection/' + inspectionId,
    method: 'get'
  })
}

// 新增入库检管理
export function addInboundInspection(data) {
  return request({
    url: '/qualityManagement/inboundInspection',
    method: 'post',
    data: data
  })
}

// 修改入库检管理
export function updateInboundInspection(data) {
  return request({
    url: '/OutboundManagement/deliveryOperation',
    method: 'put',
    data: data
  })
}
// 删除入库检管理
export function delInboundInspection(inspectionId) {
  return request({
    url: '/qualityManagement/inboundInspection/' + inspectionId,
    method: 'delete'
  })
}
